/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>Project: mybatis2021 - UserMapper
 * <p>Powered by webrx On 2021-07-13 16:58:30
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 15
 */
public interface UserMapper {
    @Insert("insert into user value(null,#{name},#{birth},#{regtime},#{logintime},#{updatetime})")
    public int save(User user);

    @Select("select * from user")
    public List<User> queryAll();

}
